package com.etc.controller;


import com.etc.service.PaymentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author kalista
 * @Description
 * @Date 2021/3/19  18:50
 **/
@RestController
@RequestMapping("/order")
public class OrderController {


    @Autowired
    private PaymentService paymentService;


    @GetMapping("/index")
    public String index(){
        String index = paymentService.index();
        return index;
    }

    @GetMapping("/timeout")
    public String timeout(){
        String index = paymentService.timeout();
        return index;
    }
}
